package com.workcell.workdata.xthings.mapper.mqtt;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.workcell.workdata.xthings.entity.mqtt.ValveData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
@DS("slave_mqtt")
public interface ValveDataMapper extends BaseMapper<ValveData> {

	ValveData getLatelyDataInfo(@Param("deviceNo") String deviceNo, @Param("manufacturerCode") String manufacturerCode, @Param("time") Integer time);

	ValveData getDataHourLineChartInfo(@Param("deviceNo") String deviceNo, @Param("manufacturerCode") String manufacturerCode,
									   @Param("startTime") Date startTime, @Param("endTime") Date endTime);

}
